package com.ifdom.thread.basiccreatethread;

/**
 * @Author ifredomvip@gmail.com
 * @Date 2022/6/28 9:07
 * @Version 1.0.0
 * @Description
 **/
public class ThreadWithThread extends Thread {
    public static void main(String[] args) {

        System.out.println("线程名：" + Thread.currentThread().getName() + "线程Id：" + Thread.currentThread().getId());

        // 创建一个线程
        ExtendThread a = new ExtendThread("A");
        // 创建一个线程
        ExtendThread b = new ExtendThread("B");


        a.start();
        b.start();
    }
}